Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Fix Update-ModuleManifest clears FunctionsToExport, AliasesToExport, NestedModules #373 #415

Merged
merged 3 commits into from
Feb 10, 2019

Conversation

pougetat
Copy link

@pougetat pougetat commented Feb 2, 2019

This is a fix for #373 .

Update : I've written a comment on the issue which essentially say that this was resolved in a recent release of PowerShell. Should I close this PR ?

@alerickson
Copy link
Member

alerickson commented Feb 4, 2019

For the failing test, try using "Microsoft.PowerShell.Management" or "Microsoft.PowerShell.Utility", since they're nested modules used elsewhere in the file. I think throwing an error makes sense when a nested module's new manifest returns as invalid. Clearing nested modules after that sounds reasonable, though. As @edyoung commented in the related issue, would still like to merge this PR for older versions of PS.

@pougetat
Copy link
Author

pougetat commented Feb 5, 2019

@alerickson Sounds good. I'll update my PR to take this into account today. :)

@alerickson alerickson merged commit eb4e2cc into PowerShell:development Feb 10, 2019
alerickson pushed a commit that referenced this pull request Feb 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants